package com.itheima02.exception;

public class Demo3_CatchException {
    public static void main(String[] args) {
        //try...catch后，不影响后续代码的执行
        try {
            int[] arr = null;
            System.out.println(arr[0]); //NullPointerException
        } catch (NullPointerException e) {
            e.printStackTrace();
        }
        System.out.println("我是后续代码，看看我有没有执行?");
    }
}
